import request from '@/utils/request';
import qs from "qs";



export async function getPage(params) {
  const limit = params.pageSize;
  const page = params.current;
  const my_params = {
    limit: limit,
    page: page
  };
  Object.assign(params, my_params);
  delete params.current;
  delete params.pageSize;
  params.stuff = "1";
  return request('/supplyChain/supplier/page', {
    params:params,
    paramsSerializer: params => {
      return qs.stringify(params, { indices: false })
    }
  });
}
export async function exportRecord(params) {
  return request(`/supplyChain/supplier/exportStuffSupplier`, {
    method: 'GET',
    responseType: 'blob',
    params:params,
    paramsSerializer: params => {
      return qs.stringify(params, { indices: false })
    }
  });
}

